extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]FI-282直升机"
	info = "每2秒对当前目标造成[炮击*0.3]的炮击伤害\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.atk = 50
	att.cri = 0.3

var index = 0
func _upS():
	index += 1
	if masCha == null or not utils.inBattle(masCha) or masCha.aiCha == null or index < 1:return
	var p2 = 0.3
	if masCha.isSumm:p2 *= 0.5
	masCha.azurHurtChara(masCha.aiCha, masCha.att.atk*p2, sys.HurtType.WEAPON, sys.AtkType.GUN, "FI-282直升机")
	index = 0

func upgrade():
	name = "[color=#FFFF00][史诗]FI-282直升机"
	info = "每2秒对当前目标造成[炮击*0.3]的炮击伤害"
	att.atk = 100
	att.cri = 0.6


